package icraf.carbon.core;

import java.util.ArrayList;


public class LandCoverList extends ArrayList<LandCover>  {
	private static final long serialVersionUID = 8286406302590387307L;
	private boolean updated = true;
	
	public boolean isUpdated() {
		return updated;
	}

	public void setUpdated(boolean updated) {
		this.updated = updated;
	}

	public LandCover findLandCover(String label) {
		for(LandCover l: this) {
			if(l.getLabel().equalsIgnoreCase(label.trim()))
				return l;
		}
		return null;
	}

}
